﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 回货单
    /// </summary>
    [Table("PB_Return")]
    public partial class PB_Return
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 项目Id（关联PB_Project）
        /// </summary>
        public String ParentId { get; set; }

        /// <summary>
        /// 组织Id
        /// </summary>
        public String DetpId { get; set; }

        /// <summary>
        /// 回货日期
        /// </summary>
        public DateTime? ReturnDate { get; set; }

        /// <summary>
        /// 收货方
        /// </summary>
        public String Consignee { get; set; }

        /// <summary>
        /// 状态：0-未分拣；1-已分拣
        /// </summary>
        public int? State { get; set; }

        /// <summary>
        /// 创建人id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public String CreatorRealName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }
        /// <summary>
        /// 仓库Id
        /// </summary>
        public String StorId { get; set; }

        /// <summary>
        /// 派车单Id
        /// </summary>
        public String BillId { get; set; }

        /// <summary>
        /// 回货通知单Id(PB_DeliveryNotice)
        /// </summary>
        public String NoticeId { get; set; }
        /// <summary>
        /// 二维码code
        /// </summary>
        public string QrCode { get; set; }
        /// <summary>
        /// 楼号id
        /// </summary>
        public string BuildingId { get; set; }

    }
}